package com.love.marriage.dictInfo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.love.marriage.dictInfo.entity.DictInfo;
import com.love.marriage.dictInfo.vo.DictInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * description:  字典信息表 mapper
 * author:       mybatisPlus
 * createDate:   2024-10-12 22:54:04
 * version:      1.0.0
 */
@Mapper
public interface DictInfoMapper extends BaseMapper<DictInfo> {

    Page<DictInfoVo> getPage(Page<DictInfoVo> page, @Param("dictInfoVo") DictInfoVo dictInfoVo);

    DictInfoVo queryDictInfo(@Param("id") Long id);

    DictInfoVo queryDictInfoByTypeCode(@Param("typeCode") String typeCode, @Param("belongTo") String belongTo);

    List<DictInfoVo> listByBelong(@Param("belongTo") String[] belongTo);
}
